package com.sfddata.musicpillow.user.feign;


import com.sfddata.musicpillow.common.respose.BaseRespose;
import com.sfddata.musicpillow.user.entity.TbSleepRecordEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@FeignClient("mp-thirdparty")
public interface ThirdpartyFeignService {

    @PostMapping(value = "/thirdparty/oss/uploadwav", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    BaseRespose<String> uploadwav(@RequestPart("file") MultipartFile file) throws IOException;


}
